package com.qianya.oa.service.impl;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.qianya.oa.common.core.domain.entity.SysUser;
import com.qianya.oa.common.utils.StringUtils;
import com.qianya.oa.domain.FormInst;
import com.qianya.oa.domain.FormInstData;
import com.qianya.oa.dto.FormSubmitParam;
import com.qianya.oa.mapper.FormDefMapper;
import com.qianya.oa.mapper.FormInstDataMapper;
import com.qianya.oa.mapper.FormInstMapper;
import com.qianya.oa.service.FormInstDataService;
import com.qianya.oa.service.SysPostService;
import com.qianya.oa.vo.FormVo;
import org.activiti.engine.IdentityService;
import org.activiti.engine.RuntimeService;
import org.activiti.engine.TaskService;
import org.activiti.engine.task.Task;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.*;

@Service
public class FormInstDataServiceImpl implements FormInstDataService {

    @Resource
    private FormInstDataMapper formInstDataMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return formInstDataMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(FormInstData record) {
        return formInstDataMapper.insert(record);
    }

    @Override
    public int insertOrUpdate(FormInstData record) {
        return formInstDataMapper.insertOrUpdate(record);
    }

    @Override
    public int insertOrUpdateSelective(FormInstData record) {
        return formInstDataMapper.insertOrUpdateSelective(record);
    }

    @Override
    public int insertSelective(FormInstData record) {
        return formInstDataMapper.insertSelective(record);
    }

    @Override
    public FormInstData selectByPrimaryKey(Long id) {
        return formInstDataMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(FormInstData record) {
        return formInstDataMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(FormInstData record) {
        return formInstDataMapper.updateByPrimaryKey(record);
    }

    @Override
    public int updateBatch(List<FormInstData> list) {
        return formInstDataMapper.updateBatch(list);
    }

    @Override
    public int batchInsert(List<FormInstData> list) {
        return formInstDataMapper.batchInsert(list);
    }

}





